import { Renderer } from 'amis'; 
import React from 'react';

export interface MyRendererProps {
  target?: string;
}

class MyRenderer extends React.Component<MyRendererProps> {
  static defaultProps = {
    target: 'world',
  };

  render() {
    const { target } = this.props;

    return <p>Hello {target}! @amis-editor</p>;
  }
}
export default Renderer({
  test: /\bmy-renderer$/,
  name: 'my-renderer',
})(MyRenderer);
